<?php

class descTable {
	public $Field;
}

include_once 'configs/config.php';
include_once "configs/Mysql.class.php";

function GetTableDesc($tableName) {
	
	$db = new DB ( );
	
	$descs = array ();
	$query = $db->query ( "desc " . $tableName );
	for($counter = 0;; $counter ++) {
		$row = $db->fetch_array ( $query );
		if (! $row) {
			break;
		}
		$one = new descTable ( );
		$one->Field = $row ["Field"];
		$descs [] = $one;
	}
	
	$db->close ();
	return $descs;
}

?>
